-- GENERATED SPELL FOR [Overlord Gorefist] --


function spell0_18160(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18160', 617, 1)
end

function spell1_18160(pUnit, Event) --@Toughen,Self--
pUnit:FullCastSpellOnTarget(33962,pUnit)
pUnit:RegisterEvent('Sorts_18160', 653, 1)
end

function Sorts_18160(pUnit, Event)
local choix_sorts_18160 = math.random(0, 1)
if choix_sorts_18160 == 0 then
pUnit:RegisterEvent('spell0_18160', 1, 1)
end
if choix_sorts_18160 == 1 then
pUnit:RegisterEvent('spell1_18160', 1, 1)
end
end

function mob18160_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18160', math.random(1500, 3000), 1)
end

function mob18160_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18160_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18160_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18160, 1, 'mob18160_Action')
RegisterUnitEvent(18160, 2, 'mob18160_Leave')
RegisterUnitEvent(18160, 3, 'mob18160_Kill')
RegisterUnitEvent(18160, 4, 'mob18160_Die')
